-- GENERATED SPELL FOR [Gatekeeper Rageroar] --


function spell0_6651(pUnit, Event) --@Entangling Roots,n/a--
pUnit:FullCastSpellOnTarget(12747,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_6651', 11500, 1)
end

function spell1_6651(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(13584,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_6651', 572, 1)
end

function Sorts_6651(pUnit, Event)
local choix_sorts_6651 = math.random(0, 1)
if choix_sorts_6651 == 0 then
pUnit:RegisterEvent('spell0_6651', 1, 1)
end
if choix_sorts_6651 == 1 then
pUnit:RegisterEvent('spell1_6651', 1, 1)
end
end

function mob6651_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_6651', math.random(1500, 3000), 1)
end

function mob6651_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6651_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6651_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(6651, 1, 'mob6651_Action')
RegisterUnitEvent(6651, 2, 'mob6651_Leave')
RegisterUnitEvent(6651, 3, 'mob6651_Kill')
RegisterUnitEvent(6651, 4, 'mob6651_Die')
